package cn.tedu.lbs.article.web.controller;

import cn.tedu.lbs.article.web.service.ArticleService;
import com.tarena.lbs.base.protocol.exception.BusinessException;
import com.tarena.lbs.base.protocol.model.Result;
import com.tarena.lbs.pojo.content.query.ArticleQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Set;

/**
 * 文章标签业务模块
 * 主要是查询搜索
 */
@RestController
public class ArticleLabelController {
    @Autowired
    private ArticleService articleService;
    @GetMapping("/admin/content/article/getArticleLabel")
    public Result<Set<String>> getArticleLabels(ArticleQuery articleQuery)
        throws BusinessException{
        return new Result<>(articleService.getArticleLabels(articleQuery));
    }

}
